import request from '@/utils/request'
import { baseUrl } from '@/config/env';

//获取分类列表
export const getList = (page, limit) => {
  return request({
    url: baseUrl+'/rest/articleCategory/list',
    method: 'get',
    params: {
      page,
      limit,
    }
  })
}

//新增编辑
export const update = (row) => {
  return request({
    url: baseUrl+'/rest/articleCategory/editItem',
    method: 'post',
    headers:{'content-type':'application/json;charset=UTF-8'},
    data: row
  })
}


//删除标签
export const del = (id) => {
  return request({
    url: `${baseUrl}/rest/articleCategory/delete/${id}`,
    method: 'get',
  })
}